#-*- coding: latin-1 -*-
'''
Created on 01.11.2013

@author: Hualiang Qi
'''

class ArabicToRomanConverterException(Exception):
    def __init__(self, message):
        Exception.__init__(self, message)


class ArabicTooBigException(ArabicToRomanConverterException):
    def __init__(self, message="Maxiaml value should be smaller than 3999."):
        ArabicToRomanConverterException.__init__(self, message)


class ArabicInvalidException(ArabicToRomanConverterException):
    def __init__(self, message="The value should be a positive integer."):
        ArabicToRomanConverterException.__init__(self, message)


if __name__ == "__main__":
    try:
        raise ArabicTooBigException()
    except ArabicToRomanConverterException as e:
        print e    
